import { Component, OnInit } from '@angular/core';
import {  Test05Service} from "./test05.service";

@Component({
  selector: 'app-test05',
  templateUrl: './test05.component.html',
  styleUrls: ['../style.css','./test05.component.css']
})
export class Test05Component implements OnInit {

  constructor(private service: Test05Service) { }

  lst: string[];

  ngOnInit() {
    this.getlst();
  }

  getlst(){
      this.service.getlst()
      .subscribe(returnlst => this.lst = returnlst);
  }

}
